//
//  MineInfoModel.swift
//  MT
//
//  Created by M on 2019/12/25.
//  Copyright © 2019 张强. All rights reserved.
//

import UIKit
import ObjectMapper

class MineInfoResponseModel: Mappable {
    
    var code: Int?
    
    var result: MineInfoModel?
    
    var message: String?
    
    required init?(map: Map) {
        
    }
    
    open func mapping(map: Map) {
        code            <- map["code"]
        result          <- map["result"]
        message         <- map["message"]
    }
    
}

class MineInfoModel: Mappable {

    /// 主键
    var id: Int?
    
    /// 年龄
    var age: Int?
    
    /// 地区
    var area: String?
    
    /// 生日
    var birthday: String?
    
    /// 礼物金额
    var giftPrice: Int = 0
    
    /// 头像地址
    var headerUrl: String?

    /// 媒体信息
    var imgList: [UserMediaListModel]?
    
    /// 钻石
    var money: Int = 0
    
    /// 点券
    var ticketAmount: Int = 0
    
    /// 用户昵称
    var nickname: String?
    
    /// 性别 0：男，1：女
    var sex: Int = 0
    
    /// 个性签名
    var signature: String?
    
    /// 广场对应
    var roomId: Int?
    
    /// 极光登录名称
    var userName: String?
    
    /// 用户状态
    var userStatus: Int?
    
    /// 身高
    var height: Int?
    
    /// 体重
    var weight: Int?
    
    /// 星座
    var constellation: String?

    /// 行业
    var industry: String?
    
    /// 职位
    var position: String?
    
    /// 学校
    var school: String?
    
    /// 学历
    var degree: String?
    
    /// 个人标签
    var tagList: [MTTagModel]?
    
    /// 兴趣标签
    var hobbyList: [MTTagModel]?
    
    /// vip 类型
    var vipType: Int = 0
    
    /// vip 状态
    var vipState: Int = 0
    
    ///等级
    var levelId: Int = 0
    
    ///点赞数
    var likeCount: Int = 0
    
    ///好友数
    var friendsCount: Int = 0
    
    ///认证状态 -1未认证，0审核中，1已通过，2已拒绝
    var certificationStatus: Int = -1
    
    ///认证类型，1个人认证，2公司认证,0普通用户
    var certificationType: Int = 0
    
    required init?(map: Map) {
        
    }
    
    open func mapping(map: Map) {
        id              <- map["id"]
        age             <- map["age"]
        area            <- map["area"]
        giftPrice       <- map["giftPrice"]
        headerUrl       <- map["headerUrl"]
        imgList         <- map["imgList"]
        money           <- map["money"]
        ticketAmount    <- map["ticketAmount"]
        nickname        <- map["nickname"]
        sex             <- map["sex"]
        signature       <- map["signature"]
        roomId          <- map["roomId"]
        userName        <- map["userName"]
        userStatus      <- map["userStatus"]
        
        height          <- map["height"]
        weight          <- map["weight"]
        constellation   <- map["constellation"]
        industry        <- map["industry"]
        position        <- map["position"]
        school          <- map["school"]
        degree          <- map["degree"]
        tagList         <- map["tagList"]
        hobbyList       <- map["hobbyList"]
        
        vipType         <- map["vipType"]
        vipState        <- map["vipState"]
        levelId         <- map["levelId"]
        likeCount       <- map["likeCount"]
        friendsCount    <- map["friendsCount"]
        birthday        <- map["birthday"]
        certificationStatus        <- map["certificationStatus"]
        certificationType          <- map["certificationType"]
    }
    
}
